package com.example.demotest.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.concurrent.ThreadPoolExecutor;

@Service
public class TestService {

    @Autowired
    private ThreadPoolExecutor MyThreadPoolExecutor;

    public void test() {
        System.out.println(MyThreadPoolExecutor.getCorePoolSize());
    }

}
